#!/usr/bin/python
# -*- coding: utf-8 -*-
a=[1,32,43,5,54,6,65,61]

'''''交换排序—冒泡排序（Bubble Sort）'''
def BubbleSort(lists):
    cnt=len(lists)
    for i in range(cnt):
        for j in range(i+1,cnt):
            if lists[i]>lists[j]:
                lists[i],lists[j]=lists[j],lists[i]
    return lists


print(BubbleSort(a))